<template>
	<view>
		<view class="pl-4 pr-4 pt-3 lisk lineHight-2-3">
			<view>企业名称：{{ newlist.enterpriseName }}</view>
            <view>产品名称：{{ newlist.productName }}</view>
			<view>基地名称：{{ newlist.baseName }}</view>
			<view>手机号：{{ newlist.basePhone }}</view>
			<view>类型：{{ newlist.productTypeName }}</view>
			<view>数量：{{ newlist.productNumber }}{{newlist.productSpecs}}</view>
			<view>时间：{{ newlist.updateTime }}</view>
			
		</view>
	</view>
</template>

<script>
	import ferrButton from "@/components/free-ui/ferr-button.vue";
	import freeConfirm from "@/components/free-ui/free-confirm.vue";
	import $H from '@/common/free-lib/request.js';
	import $U from "@/common/free-lib/util.js";

	export default {
		components: {
			ferrButton,
			freeConfirm
		},
		data() {
			return {
				newlist: {}
			}

		},


		onLoad(options) {
			this.id = options.id;
			this.getUserInfo()
		},

		methods: {
			getUserInfo(id) {
				uni.showLoading({
					title: '加载中'
				});
				$H.get(
					"/agriculture/seasonalProducts/visitor/queryById", {
						id: this.id,
					}, {token: false}
				).then((res) => {
					this.newlist = res.result
					uni.hideLoading();
				}).catch(error => {
					console.error('请求出错', error); // 处理任何错误
					uni.showToast({
						title: "查询错误",
						icon: "none",
					});
					uni.hideLoading();
				})
			},

		}
	}
</script>

<style>
</style>